#ifndef __CTHREAD_MANAGER_H
#define __CTHREAD_MANAGER_H

#include "CThreadPool.h"

class CThreadManage
{
private:
    CThreadPool*    m_Pool;


public:
    CThreadManage();
	CThreadManage(int iMaxNum, int iAvailLow, int iAvailHigh, int iInitNum);
    virtual ~CThreadManage();

    int    Run(CJob* job,void* jobdata);
    void    TerminateAll(void);
};


#endif